package com.yxxmg.javers.domain;

import org.javers.common.string.ToStringBuilder;

/**
 * @author : yxxmg
 * @version : 1.0
 * @description : TODO 描述文件功能
 * @since : 2024/11/18
 */
public class Address {
    private String city;

    private String street;

    public Address() {}

    public Address(String city) {
        this.city = city;
    }

    public Address(String city, String street) {
        this.city = city;
        this.street = street;
    }

    public String getCity() {
        return city;
    }

    public String getStreet() {
        return street;
    }

    @Override
    public String toString() {
        return ToStringBuilder.toString(this, "city", city, "street", street);
    }
}
